#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>

int main()
{
	printf("I am parent process, pid: %d\n", getpid());

	pid_t id = fork();
	
	if(id == -1)
	{
		printf("process error\n");
		exit(1);
	}
	
	printf("After pid: %d, return: %d\n", getpid(), id);
	sleep(1);

	return 0;
}
